FROM redis

RUN mkdir -p /redis && \
    chown redis /redis && \
    cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
    echo 'Asia/Shanghai' > /etc/timezone

COPY ["redis.conf","/redis/redis.conf"]

EXPOSE 6379

CMD [ "redis-server", "/redis/redis.conf" ]
